/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 页面切换 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.login-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 表单样式 */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #555;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* 主系统布局 */
#mainPage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航栏 */
.header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo i {
    color: #667eea;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.notification-icon:hover {
    background-color: #f8f9fa;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.user-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dropdown-btn:hover {
    background-color: #f8f9fa;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    display: none;
    z-index: 1001;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 80px;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #333;
}

.nav-link.active {
    background-color: #e3f2fd;
    color: #667eea;
    border-left-color: #667eea;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.sidebar.active + .main-content {
    margin-left: 250px;
}

.content-page {
    display: none;
}

.content-page.active {
    display: block;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e5e9;
}

.page-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.page-header p {
    color: #666;
    margin-top: 0.5rem;
}

/* 页面过滤器 */
.page-filters {
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group .form-control {
    min-width: 200px;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e1e5e9;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #e1e5e9;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #f8f9fa;
}

.pagination button.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 分页工具栏（跳页与每页条数） */
.pagination-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* 仪表板表格样式 */
.dashboard-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.table-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.table-section .table-container {
    overflow-x: auto;
}

.table-section .data-table {
    width: 100%;
    margin: 0;
}

.table-section .data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 8px;
}

.table-section .data-table td {
    padding: 10px 8px;
    font-size: 0.9rem;
}

/* 仪表盘操作按钮 */
.dashboard-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.dashboard-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* 仪表盘概览卡片 */
.dashboard-summary {
    margin-top: 30px;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.summary-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.summary-content p {
    margin: 10px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-content i {
    color: #667eea;
    width: 16px;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

.summary-actions {
    margin-top: 20px;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* 统计页面头部布局 */
.statistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e1e5e9;
}

.header-left, .header-right {
    flex: 1;
}

.header-center {
    flex: 2;
    text-align: center;
}

.header-left {
    text-align: left;
}

.header-right {
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-tables {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .statistics-header {
        flex-direction: column;
        gap: 15px;
    }

    .header-left, .header-center, .header-right {
        flex: none;
        text-align: center;
    }
}

.pagination-tools input[type="number"],
.pagination-tools select {
    padding: 0.4rem 0.5rem;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
}

/* 仪表板样式 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: #f8f9fa;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 配置页面样式 */
.config-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.config-section {
    margin-bottom: 2rem;
}

.config-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-form .form-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.config-form .form-group label {
    min-width: 150px;
    font-weight: 500;
    color: #555;
}

.config-form .form-control {
    flex: 1;
    min-width: 200px;
}

/* 加载样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: #667eea;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 消息提示样式 */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
}

.message {
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.message.success {
    border-left: 4px solid #28a745;
}

.message.error {
    border-left: 4px solid #dc3545;
}

.message.warning {
    border-left: 4px solid #ffc107;
}

.message.info {
    border-left: 4px solid #17a2b8;
}

.message i {
    font-size: 1.2rem;
}

.message.success i {
    color: #28a745;
}

.message.error i {
    color: #dc3545;
}

.message.warning i {
    color: #ffc107;
}

.message.info i {
    color: #17a2b8;
}

.message-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 状态标签样式 */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-borrowing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-returned {
    background-color: #d4edda;
    color: #155724;
}

.status-overdue {
    background-color: #f8d7da;
    color: #721c24;
}

.status-lost {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #4a235a;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: 1px solid #9b59b6;
    box-shadow: 0 2px 4px rgba(155, 89, 182, 0.2);
}

.status-paid {
    background: linear-gradient(135deg, #8eac50, #6a8c2d);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: 1px solid #5a7725;
    box-shadow: 0 2px 4px rgba(90, 119, 37, 0.3);
}

.status-unpaid {
    background-color: #fff3cd;
    color: #856404;
}

.status-read {
    background-color: #d4edda;
    color: #155724;
}

.status-unread {
    background-color: #f8d7da;
    color: #721c24;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar.active + .main-content {
        margin-left: 0;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group .form-control {
        min-width: auto;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .modal {
        width: 95%;
        margin: 1rem;
    }
    
    .config-form .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .config-form .form-group label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* 打印样式 */
@media print {
    .header,
    .sidebar,
    .page-filters,
    .modal-overlay,
    .loading-overlay,
    .message-container {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .table-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* 图书状态管理样式 */
.book-status-management {
    max-width: 100%;
}

.status-statistics {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-statistics h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.stat-label {
    font-weight: 500;
    color: #6c757d;
}

.stat-value {
    font-weight: 600;
    font-size: 1.2rem;
    color: #495057;
}

.book-items-list {
    margin-bottom: 2rem;
}

.book-items-list h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
}

.items-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.items-table th,
.items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.items-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.items-table tbody tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.status-badge.status-in_stock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-borrowed {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.status-abnormal {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.batch-operations {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.batch-operations h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
}

.batch-controls {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.batch-controls .form-control {
    min-width: 150px;
}

.batch-controls .btn {
    white-space: nowrap;
}

/* 模态框大小调整 */
.modal.large .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: 90vw;
}

.modal.medium .modal-content {
    max-width: 600px;
    width: 90vw;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .batch-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .batch-controls .form-control,
    .batch-controls .btn {
        width: 100%;
    }

    .items-table-container {
        max-height: 300px;
    }

    .items-table th,
    .items-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* 导入导出功能样式 */
.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 表格中的按钮组样式 */
.btn-group-table {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.btn-group-table .btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-group-table .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 特殊按钮样式 */
.btn-group-table .btn-danger {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    border: none;
}

.btn-group-table .btn-dark {
    background: linear-gradient(135deg, #232526, #414345);
    border: none;
}

.btn-group-table .btn-dark:hover,
.btn-group-table .btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.import-container {
    max-width: 100%;
}

.import-tips {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.import-tips h4 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 1rem;
}

.import-tips ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #6c757d;
}

.import-tips li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.import-form {
    margin-top: 1rem;
}

.import-form .form-group {
    margin-bottom: 1rem;
}

.import-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.import-form input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
}

.import-form input[type="file"]:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 按钮样式调整 */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 搜索界面样式 */
.page-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.search-input-group input {
    flex: 1;
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.btn-search {
    border-radius: 0 6px 6px 0;
    border-left: none;
    background: #007bff;
    color: white;
    padding: 8px 12px;
    border: 1px solid #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.category-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.filter-label {
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.category-filter-group select {
    flex: 1;
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-actions .btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-actions .btn-primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.filter-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.filter-actions .btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
}

/* 搜索界面响应式设计 */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-group,
    .category-filter-group,
    .filter-actions {
        min-width: auto;
        width: 100%;
    }

    .filter-actions {
        justify-content: center;
    }
}

/* 表格中的按钮组样式 */
.btn-group-table {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-group-table .btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
}

.btn-group-table .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-group-table .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-group-table .dropdown-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-group-table .dropdown-toggle::after {
    margin-left: 0.25rem;
}

/* 特殊按钮样式 */
.btn-group-table .btn-danger {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    border: none;
    box-shadow: 0 2px 4px rgba(255, 65, 108, 0.3);
}

.btn-group-table .btn-dark {
    background: linear-gradient(135deg, #232526, #414345);
    border: none;
    box-shadow: 0 2px 4px rgba(35, 37, 38, 0.3);
}

.btn-group-table .btn-dark:hover,
.btn-group-table .btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 新增的特殊状态按钮样式 */
.btn-overdue {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #333;
    border: none;
    box-shadow: 0 2px 4px rgba(255, 154, 158, 0.3);
}

.btn-lost {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #333;
    border: none;
    box-shadow: 0 2px 4px rgba(161, 140, 209, 0.3);
}

.btn-group-table .btn-overdue:hover,
.btn-group-table .btn-lost:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 确保下拉菜单在表格中正确显示 */
.btn-group-table .dropdown-menu {
    min-width: auto;
    font-size: 0.8rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-group-table .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    transition: background-color 0.2s ease;
}

.btn-group-table .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* 响应式表格按钮组 */
@media (max-width: 768px) {
    .btn-group-table {
        justify-content: flex-end;
    }

    .btn-group-table .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .btn-group-table .btn span {
        display: none;
    }

    .btn-group-table .btn i {
        margin-right: 0;
    }
}

/* 下拉菜单中的图标样式 */
.dropdown-item i {
    width: 16px;
    text-align: center;
}
